// 用户相关的接口
import request from '@/axios/index'

/**
 * 用户登录
 * @param {object} data
 */
export const userLogin = (data) => {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}
/**
 * 注册
 * @param {Object} data 
 * @returns 
 */
export const registered = (data) => {
  return request({
    url: '/api/user/registered',
    method: 'post',
    data
  })
}